﻿<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<title>通用文章系统</title>
<link href="./layout.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="container">
<!--head-->
<div id="header">
	<h1><br/>通用文章系统</h1>
</div>
<div id="menu">
	<div id="nav">
	    <ul>
			<li><a href="index.jsp">首页</a></li>
			<s:iterator value="#session.clist">
			<li><a href="channel.jsp">${name}</a></li>
		    </s:iterator>
		</ul>
	</div>
	<div id="umenu">
		<s:if test="#session.user==null">
			<a href="login.jsp">登录</a>|&nbsp;&nbsp;<a href="regist.jsp">注册</a>&nbsp;
		</s:if>
		<s:else>欢迎你：${sessionScope.user.username}</s:else>
	</div>
</div>
<div class="clearfloat"></div>